package com.wisely.service;

import com.wisely.mapper.TbItemMapper;
import com.wisely.pojo.TbItem;
import com.wisely.utils.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemServiceImpl implements IItemService {

    @Autowired
    private TbItemMapper itemMapper;
    @Autowired
    private RedisService redisService;

    @Override
    public TbItem getItemById(long id) {
        redisService.set("zhang","lianming");
        return itemMapper.selectByPrimaryKey(id);
    }
}
